package com.lemo.config;

import com.lemo.*;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;

@Configuration
public class WebMvcConfig extends WebMvcConfigurerAdapter {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new PermHandlerInterceptor()).addPathPatterns("/**");
//        registry.addInterceptor(new InterceptorM1()).addPathPatterns("/**");
//        registry.addInterceptor(new InterceptorM2()).addPathPatterns("/**");
//        registry.addInterceptor(new InterceptorM3()).addPathPatterns("/**");
//        registry.addWebRequestInterceptor(new InterceptorM4()).addPathPatterns("/**");
    }
}
